<?php
/**
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
$cakeDescription = __d('cake_dev', 'Tiendas ROCKY - Vendedor');
$this->requestaction('/Usuarios/verificarVendedor');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic'); 
		echo $this->Html->css('menu');
		echo $this->Html->css('style');
		//echo $this->Html->css('formulario');

		echo $this->Html->css('jquery.dataTables');
		echo $this->Html->css('jquery-ui');
		echo $this->Html->css('TableTools');

		echo $this->Html->script('jquery-1.9.1');
		echo $this->Html->script('jquery-ui-1.9.2.custom');
		echo $this->Html->script('jquery.dataTables');
		echo $this->Html->script('TableTools');
		echo $this->Html->script('ZeroClipboard');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
<script type="text/javascript">
	function addCommas(nStr) {
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? '.' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + ',' + '$2');
		}
		return x1 + x2;
	}

    jQuery.extend( jQuery.fn.dataTableExt.oSort, {
        "formatted-num-pre": function ( a ) {
            a = a.replace( 'S/. ', '' );
            return parseFloat( a ).toFixed(2);
        },
        "formatted-num-asc": function ( a, b ) {
            return a - b;
        },
        "formatted-num-desc": function ( a, b ) {
            return b - a;
        }
    } );
</script>
<style type="text/css">
	.but {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff !important;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff !important;
	box-shadow:inset 0px 1px 0px 0px #ffffff !important;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ) !important;
	background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ) !important;
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf') !important;
	background-color:#ededed !important;
	-moz-border-radius:6px !important;
	-webkit-border-radius:6px !important;
	border-radius:6px !important;
	border:1px solid #bbb !important;
	display:inline-block !important;
	color:#365180 !important;
	font-family:arial !important;
	font-size:12px !important;
	font-weight:bold !important;
	padding:5px 9px !important;
	text-decoration:none !important;
	text-shadow:1px 1px 0px #ffffff !important;
}.but:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ) !important;
	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ) !important;
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed') !important;
	background-color:#dfdfdf !important;
}.but:active {
	position:relative !important;
	top:1px !important;
}
</style>
</head>
<body id="bodyadm">
<div align="center" >
	<div id="container" style="width:1100px;">
		<div id="header">
			<!--h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1-->
		</div>
		
		<div id='cssmenu'>
		<ul>
		   <li><a href='../Productos/listar_vendedor'><span>PRODUCTOS</span></a></li>
		   <li><a href='../Ventas/registrar'><span>REALIZAR VENTA</span></a></li>
		    <li><a href='../Ventas/listar_vendedor'><span>MIS VENTAS</span></a></li>
		</ul>
		<span style="float:right;margin:12px 15px 0 0;font-weight:bold;">
			<?php
				$nombre = $this->Session->read('nombre');
				$apellido = $this->Session->read('apellido');
			?>
			Bienvenido(a) <?php echo $apellido.', '.$nombre; ?>
			&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a onmouseover="this.style.color='#0066FF'" onmouseout="this.style.color='#FFF'" style="color:#FFF" href='../Usuarios/cerrar'><span>Cerrar Sesión</span></a>
		</span>
		</div>
		<div id="content" align="center" style="min-height:425px;">
	        <?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
		</div>
		<div id="footer">
			<p style="float: right" >TIENDAS ROCKY ® Copyright © <?php echo date('Y'); ?>. Todos los Derechos Reservados</p>
			<p style="float: left" >
			<?php
				date_default_timezone_set("America/Lima");
				$dias = array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
				$meses = array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
				echo $dias[date('w')]." ".date('d')." de ".$meses[date('n')-1]. " del ".date('Y') ;
			?>
			</p>
		</div>
	</div>
</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>